﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace ViewModels.JsonTest
{
    [DataContract]
    public class LeftMenuModel
    {
        [DataMember(Name = "mnu01")]
        public object Menu01 { get; set; }

        //[DataMember(Name = "mnu02")]
        //public LeftMenu1DepthItem Menu02 { get; set; }

        //[DataMember(Name = "mnu03")]
        //public LeftMenu1DepthItem Menu03 { get; set; }

        //[DataMember(Name = "mnu04")]
        //public LeftMenu1DepthItem Menu04 { get; set; }

        //[DataMember(Name = "mnu05")]
        //public LeftMenu1DepthItem Menu05 { get; set; }
    }

    [DataContract]
    public class LeftMenu1DepthItem
    {
        [DataMember(Name = "id")]
        public string Id { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "className")]
        public string ClassName { get; set; }

        //[DataMember(Name = "mnu05")]
        //public List<string> AuthList { get; set; }

        //[DataMember(Name = "mnu05")]
        //public List<LeftMenu2DepthItem> SubMenuItem { get; set; }
    }

    [DataContract]
    public class LeftMenu2DepthItem
    {
        public string Title { get; set; }
        public string Url { get; set; }
        public List<string> RelatedUrlList { get; set; }
        public List<string> AuthList { get; set; }
    }
}
